package pta;

import java.math.BigDecimal;
import java.util.Scanner;

public class test {
	public static void main(String[] args){
		Scanner s=new Scanner(System.in);
		while(s.hasNext()){
			String a1=s.next();
			String a2=s.next();
	
		BigDecimal B1=new BigDecimal (a1);
		BigDecimal B2=new BigDecimal (a2);
		System.out.println(B1.add(B2));
		System.out.println(B1.multiply(B2));
		String a;
		}


	}

	
}



